Thread: Tree Book indexing

  1. #1
    Registered User
    Join Date
    Sep 2012
    Posts
    2

    Tree Book indexing

    anyone can help me guys, i am a newby here and need some help about the code and program...

    Desired Output;Index pages of a book
    Functionalities:
    -add major or minor term
    -add pages to a major term
    -add minor terms to a major term
    -add pages to a minor term
    -sort pages in ascending order
    -Display output


    example:
    array 8, 10-15
    binary search- 12
    sequentil search 10
    size 8
    linked list 35
    array implementations 36, 39
    pointer implementation 39, 115, 207
    start 35
    queue allocation 201, 200

  2. #2
    Registered User
    Join Date
    May 2012
    Posts
    1,066
    How much do you pay? :-)

    Seriously, read How To Ask Questions The Smart Way

    Bye, Andreas

  3. #3
    Registered User
    Join Date
    Sep 2012
    Posts
    2
    nevermind andreas... im just hoping there is someone will help me. thanks for the links... God bless you.. ^_^
    Last edited by lawrenceserrano; 09-14-2012 at 12:40 AM.

  4. #4
    Registered User
    Join Date
    May 2012
    Posts
    1,066
    Nobody will be able to help you if you don't show what you have already done and where you are stuck (errors, unexpected output, ...).

    Bye, Andreas

  5. #5
    Registered User
    Join Date
    Sep 2012
    Posts
    357
    I'll help you start
    Code:
    int main(int argc, char **argv) {
    }

  6. #6
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    I can see how you could do this, EXCEPT, for the multi-word terms (entries), for the index. "Queue" would be easy, but "queue allocation" is a problem. How would your program know that "allocation" should be matched up with "queue"? How would the program know that "pointer arithmetic" would make a good entry, but "arithmetic" by itself, wouldn't?

    If you say "because it's the word adjacent to "queue" or to "pointer", then you can add words to the terms, right, left, and center, and make a very stupid index.

    It seems to imply that some knowledge of keywords (perhaps in a data file), appropriate to the subject, would be essential.

    The rest of it seems pretty straight forward, depending on the depth of the index you wanted to create.

    That seems like an assignment for an experienced programmer (no offense). Who (the hell), gave you this job or assignment? I don't know what your programming skills are, but this seems like a very advanced request for a beginner to take on.
    Last edited by Adak; 09-14-2012 at 04:39 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Indexing help
    By papermate in forum C Programming
    Replies: 6
    Last Post: 08-19-2010, 06:23 AM
  2. Indexing a string
    By relyt_123 in forum C++ Programming
    Replies: 5
    Last Post: 09-19-2006, 05:55 PM
  3. Indexing 1
    By joshua in forum C Programming
    Replies: 1
    Last Post: 11-02-2005, 11:32 PM
  4. indexing
    By ckyuen in forum C Programming
    Replies: 24
    Last Post: 05-26-2003, 11:25 PM
  5. Indexing arrays
    By Dutch in forum C++ Programming
    Replies: 4
    Last Post: 12-09-2002, 02:19 PM